<%= error_messages_for :post %>
<% form_for :post, :url => {:controller => 'admin/posts', :action => 'update', :id => @post}, :html => { :method => :put, :multipart => true} do |f| -%>
<fieldset>
    <legend>Update post</legend>

   <%= render :partial => 'form', :object => f %>
   
    <p><%= submit_tag 'Update' %></p>
</fieldset>
<% end -%>
